package com.it.myd.controller.main.module.cardGame;

import com.it.myd.bean.box.game.KaPai.Card;
import com.it.myd.bean.main.ReturnValue;
import com.it.myd.bean.main.User;
import com.it.myd.service.main.module.cardGame.CardShowService;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.text.SimpleDateFormat;

@Controller
@RequestMapping("/module/cardgame/cardshow")
public class CardShowController {

    @Autowired
    CardShowService cardShowService;

    @RequestMapping("/getCardShowList")
    @ResponseBody
    public ReturnValue getCardShowList(HttpServletRequest request) {
        HttpSession session = request.getSession();
//        User user = (User) session.getAttribute("user");
//        String msg_content = request.getParameter("msg_content");




        ReturnValue<Card> returnValue = new ReturnValue<Card>();
        returnValue.setRetList(cardShowService.getCardShowList());
        returnValue.isSuccess("发送成功");
        return returnValue;
    }

}
